Enter numbers $a$ and $b$ to generate a table of intersection of arithmetic progressions